﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Ivy.Common.Framework.Base;
using System.Runtime.Serialization;

namespace Ivy.UserRegistration.Entity
{
    [Serializable]
    [DataContract]
    public class UserProfileImage : DataEntityBase
    {
        #region  Variable & constant
        Int32 lUserKey = -1;
        string lUserLoginID = string.Empty;
        byte[] lUserImageData = null;
        string lUserImageType = string.Empty;
        string lUserImageFileName = string.Empty;
        #endregion  Variable & constant

        #region Constructor & Destructor
        public UserProfileImage()
            : base()
        {
            this.Sys_DeleteType = DeleteType.SoftDeleteOnly;
        }
        #endregion Constructor & Destructor

        #region Properties
        [DataMember]
        public Int32 UserKey
        {
            get
            {
                return lUserKey;
            }
            set
            {
                lUserKey = value;
                base.SetEntityStateChangeAttribute();
            }
        }

        [DataMember]
        public string UserLoginID
        {
            get
            {
                return lUserLoginID;
            }
            set
            {
                lUserLoginID = value;
                base.SetEntityStateChangeAttribute();
            }
        }

        [DataMember]
        public byte[] UserImageData
        {
            get
            {
                return lUserImageData;
            }
            set
            {
                lUserImageData = value;
                base.SetEntityStateChangeAttribute();
            }
        }

        [DataMember]
        public string UserImageType
        {
            get
            {
                return lUserImageType;
            }
            set
            {
                lUserImageType = value;
                base.SetEntityStateChangeAttribute();
            }
        }

        [DataMember]
        public string UserImageFileName
        {
            get
            {
                return lUserImageFileName;
            }
            set
            {
                lUserImageFileName = value;
                base.SetEntityStateChangeAttribute();
            }
        }
        #endregion Properties

        #region Public Methods
        #endregion Public Methods

        #region Events
        #endregion Events

        #region Private Methods
        #endregion Private Methods
    }
}
